﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CustomerCare.aspx.cs" Inherits="CRM.Web.VehicleManage.CustomerCare" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            $(".cbAll").live("click", function() {
                if ($(this).children().eq(0).attr("checked") == "checked") {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", "checked");
                    });
                }
                else {
                    $(".cbItem").children().each(function() {
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server"  defaultbutton="btnSearch" >
<table border="0" cellpadding="0" cellspacing="0" id="tTitle">
    <tr>
	<td class="left">
	    <img src="<%= base.ResourcesPath %>Images/title_left.gif" alt="" />
	</td>
	<td class="middle">

    <div class="pagetitle">
        <div><asp:Label ID="lblTitle" runat="server" Text="客户关怀短信发送" ></asp:Label></div>
    </div>
	
	</td>
	<td class="right">
	    <img src="<%= base.ResourcesPath %>Images/title_right.gif" alt="" />
	</td>
    </tr>
</table>
    <div id="divMain" >
    <div style="width: 100%">
        <div class="listdiv">
            <table border="0" cellpadding="0" cellspacing="0" class="search" align="center">
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            整机编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVINCODE" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            发动机编号:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtENGINENUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            服务商名称:
                        </div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtSTATIONNAME" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            经销商名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtDEALERNAME" runat="server" CssClass="txt" MaxLength="128" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            品牌:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtBRAND" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            类型:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVEHICLETYPE" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            系列:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtSERIES" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            机型:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtMODELS" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    
                    <td class="title">
                        <div class="nowrap">
                            购机日期:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtPURCHASEDATEBegin" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>-<asp:TextBox
                            ID="txtPURCHASEDATEEnd" runat="server" MaxLength="20" CssClass="datetime"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                            市场部名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtMARKETDEPARTMENTNAME" runat="server" CssClass="txt"></asp:TextBox>
                    </td>
                    <td class="title">
                        <div class="nowrap">
                        
                        </div>
                    </td>
                    <td class="content">
                    
                    </td>
                    <td class="title">
                        &nbsp;
                    </td>
                    <td class="content">
                        <div style="width: 100px;" class="nowrap">
                            <asp:Button ID="btnSearch" runat="server" Text="查 询" CommandName="Search" CssClass="btn title_cx"
                                OnClick="btnSearch_Click" /></div>
                    </td>
                </tr>
                <tr>
                    <td class="title">
                        <div class="nowrap">
                            短信内容:</div>
                    </td>
                    <td class="content" colspan="5">
                        <asp:TextBox ID="txtSMSContent" runat="server" CssClass="txt txt90" MaxLength="500"
                            Rows="3" TextMode="MultiLine"></asp:TextBox>
                    </td>
                    <td class="title">
                        &nbsp;
                    </td>
                    <td class="content">
                        <div style="width: 220px;" classs="nowrap">
                            <asp:Button ID="btnAllSendSMS" runat="server" Text="全部发送" CommandName="AllSendSMS" CssClass="btn title_cx"
                                OnClick="btnSendSMS_Click" />
                            <asp:Button ID="btnSelectedSendSMS" runat="server" Text="发送选中" CommandName="SelectedSendSMS"
                                CssClass="btn title_cx" OnClick="btnSendSMS_Click" /></div>
                    </td>
                </tr>
            </table>
            <div style="width: 100%">
                <div class="listdiv">
                    <dp:WebGridView ID="gvList" runat="server" CssClass="gridview" AutoGenerateColumns="False" OnRowCreated="gvList_RowCreated" OnRowDataBound="gvList_RowDataBound" OnRowDeleting="gvList_RowDeleting" AllowPaging="true" 
                        AllowSorting="true" PageSize="10"  SortExpressionValue="VEHICLEID">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderTemplate>			                
                                    <asp:CheckBox ID="cbAll" CssClass="cbAll" runat="server"  />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cbItem" CssClass="cbItem" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="28px" HorizontalAlign="Center" />
                                <HeaderStyle Width="28px" HorizontalAlign="Left"  />
                            </asp:TemplateField>
			                <asp:BoundField DataField="VEHICLEID" HeaderText="车辆编号"  SortExpression="VEHICLEID" />
			                <asp:BoundField DataField="VINCODE" HeaderText="整机编号"  SortExpression="VINCODE" />
			                <asp:BoundField DataField="PRODUCTCODE" HeaderText="产品代码"  SortExpression="PRODUCTCODE" />
			                <asp:BoundField DataField="CUSTOMERCODE" HeaderText="用户代码"  SortExpression="CUSTOMERCODE" />
			                <asp:BoundField DataField="CUSTOMERNAME" HeaderText="用户姓名"  SortExpression="CUSTOMERNAME" />
			                <asp:BoundField DataField="OWNERSMOBILEPHONE" HeaderText="用户手机"  SortExpression="OWNERSMOBILEPHONE" />
			                <asp:BoundField DataField="BRAND" HeaderText="品牌"  SortExpression="BRAND" />
			                <asp:BoundField DataField="VEHICLETYPE" HeaderText="类型"  SortExpression="VEHICLETYPE" />
			                <asp:BoundField DataField="SERIES" HeaderText="系列"  SortExpression="SERIES" />
			                <asp:BoundField DataField="MODELS" HeaderText="机型"  SortExpression="MODELS" />
			                <asp:BoundField DataField="ENGINEMODEL" HeaderText="发动机型号"  SortExpression="ENGINEMODEL" />
			                <asp:BoundField DataField="ENGINEMANUFACTURERS" HeaderText="发动机厂家"  SortExpression="ENGINEMANUFACTURERS" />
			                <asp:BoundField DataField="ENGINENUMBER" HeaderText="发动机编号"  SortExpression="ENGINENUMBER" />
			                <asp:BoundField DataField="FRAMENUMBER" HeaderText="车架号"  SortExpression="FRAMENUMBER"  Visible="False"/>
			                <asp:BoundField DataField="PURCHASEDATE" HeaderText="购机日期"  SortExpression="PURCHASEDATE"  />
			                <asp:BoundField DataField="RANGE" HeaderText="里程"  SortExpression="RANGE"  Visible="False"/>
			                <asp:BoundField DataField="OFFLINEDATE" HeaderText="下线日期"  SortExpression="OFFLINEDATE"  Visible="False"/>
			                <asp:BoundField DataField="FIRSTSALESDATE" HeaderText="销售日期"  SortExpression="FIRSTSALESDATE"  Visible="False"/>
			                <asp:BoundField DataField="CUSTOMERID" HeaderText="客户编号"  SortExpression="CUSTOMERID"  Visible="False"/>
			                <asp:BoundField DataField="MANUFACTUREDATE" HeaderText="出厂日期"  SortExpression="MANUFACTUREDATE"  Visible="False" />
			                <asp:BoundField DataField="MARKETDEPARTMENTID" HeaderText="市场部编号"  SortExpression="MARKETDEPARTMENTID"  Visible="False" />
			                <asp:BoundField DataField="MARKETDEPARTMENTCODE" HeaderText="市场部代码"  SortExpression="MARKETDEPARTMENTCODE"  Visible="False" />
			                <asp:BoundField DataField="MARKETDEPARTMENTNAME" HeaderText="市场部名称"  SortExpression="MARKETDEPARTMENTNAME"  Visible="False" />
			                <asp:BoundField DataField="DEALERCODE" HeaderText="经销商代码"  SortExpression="DEALERCODE"  Visible="False" />
			                <asp:BoundField DataField="DEALERNAME" HeaderText="经销商名称"  SortExpression="DEALERNAME"  Visible="False" />
			                <asp:BoundField DataField="PURCHASEMETHOD" HeaderText="购机方式"  SortExpression="PURCHASEMETHOD" Visible="False"  />
			                <asp:BoundField DataField="ISSUBSIDIES" HeaderText="是否政府补贴"  SortExpression="ISSUBSIDIES" Visible="False"  />
			                <asp:BoundField DataField="SALESTYPE" HeaderText="销售类型"  SortExpression="SALESTYPE"  Visible="False" />
			                <asp:BoundField DataField="CONTACTNAME" HeaderText="联系人姓名"  SortExpression="CONTACTNAME"  Visible="False" />
			                <asp:BoundField DataField="CONTACTTEL" HeaderText="联系人电话"  SortExpression="CONTACTTEL"  Visible="False" />
			                <asp:BoundField DataField="VEHICLESTATUS" HeaderText="车辆状态"  SortExpression="VEHICLESTATUS"  Visible="False" />
			                <asp:BoundField DataField="PRODUCTID" HeaderText="产品ID"  SortExpression="PRODUCTID" Visible="False"  />
			                <asp:BoundField DataField="CFGPRODUCTCODE" HeaderText="临时产品编号"  SortExpression="CFGPRODUCTCODE" Visible="False"  />
			                <asp:BoundField DataField="CREATETIME" HeaderText="创建时间"  SortExpression="CREATETIME" Visible="False"  />
			                <asp:BoundField DataField="CREATEPEOPLEID" HeaderText="创建人编号"  SortExpression="CREATEPEOPLEID"  Visible="False" />
			                <asp:BoundField DataField="CREATEPEOPLE" HeaderText="创建人"  SortExpression="CREATEPEOPLE" Visible="False"  />
			                <asp:BoundField DataField="LASTMODIFYPEOPLEID" HeaderText="最后修改人编号"  SortExpression="LASTMODIFYPEOPLEID" Visible="False"  />
			                <asp:BoundField DataField="LASTMODIFYPEOPLE" HeaderText="最后修改人"  SortExpression="LASTMODIFYPEOPLE" Visible="False"  />
			                <asp:BoundField DataField="LASTMODIFYTIME" HeaderText="最后修改时间"  SortExpression="LASTMODIFYTIME"  Visible="False" />
			                <asp:BoundField DataField="REMARK" HeaderText="备注"  SortExpression="REMARK"  Visible="False" />
			                <asp:BoundField DataField="BUSINESSDIVISIONID" HeaderText="事业部编号"  SortExpression="BUSINESSDIVISIONID" Visible="False"  />
			                <asp:BoundField DataField="BUSINESSDIVISIONNAME" HeaderText="事业部名称"  SortExpression="BUSINESSDIVISIONNAME" Visible="False"  />
			                <asp:BoundField DataField="BUSINESSDIVISIONCODE" HeaderText="事业部代码"  SortExpression="BUSINESSDIVISIONCODE" Visible="False"  />
			                <asp:BoundField DataField="CARNUMBER" HeaderText="上车编号"  SortExpression="CARNUMBER"  Visible="False" />
			                <asp:BoundField DataField="CHASSISNO" HeaderText="底盘编号"  SortExpression="CHASSISNO"  Visible="False" />
			                <asp:BoundField DataField="SERIALNUMBER" HeaderText="出厂编号"  SortExpression="SERIALNUMBER"  Visible="False" />
			                <asp:BoundField DataField="GEARTYPE" HeaderText="变速箱型号"  SortExpression="GEARTYPE"  Visible="False" />
			                <asp:BoundField DataField="GEARCODE" HeaderText="变速箱号"  SortExpression="GEARCODE"  Visible="False" />
			                <asp:BoundField DataField="LICENSECODE" HeaderText="车牌号"  SortExpression="LICENSECODE"  Visible="False" />
			                <asp:BoundField DataField="LASTSALEDATE" HeaderText="二次销售日期"  SortExpression="LASTSALEDATE"  Visible="False" />
			                <asp:BoundField DataField="INVOICECODE" HeaderText="销售发票号"  SortExpression="INVOICECODE"  Visible="False" />
			                <asp:BoundField DataField="SALESPRICE" HeaderText="批发价"  SortExpression="SALESPRICE"  Visible="False" />
			                <asp:BoundField DataField="PRICE" HeaderText="零售价"  SortExpression="PRICE"  Visible="False" />
			                <asp:BoundField DataField="COLOR" HeaderText="车身颜色"  SortExpression="COLOR"  Visible="False" />
			                <asp:BoundField DataField="BULLETINCODE" HeaderText="公告号"  SortExpression="BULLETINCODE"  Visible="False" />
			                <asp:BoundField DataField="MODIFYCOUNT" HeaderText="更新次数"  SortExpression="MODIFYCOUNT"  Visible="False" />
			                <asp:BoundField DataField="QUICKCODE" HeaderText="速查码"  SortExpression="QUICKCODE"  Visible="False" />
			                <asp:BoundField DataField="SIMPLELICENCE" HeaderText="车牌简码"  SortExpression="SIMPLELICENCE"  Visible="False" />
			                <asp:BoundField DataField="PURPOSE" HeaderText="购车用途"  SortExpression="PURPOSE"  Visible="False" />
			                <asp:BoundField DataField="SUPPLYCODE" HeaderText="供应商编号"  SortExpression="SUPPLYCODE"  Visible="False" />
			                <asp:BoundField DataField="SUPPLYNAME" HeaderText="供应商名称"  SortExpression="SUPPLYNAME"  Visible="False" />
			                <asp:BoundField DataField="SERIALMENO" HeaderText="总成系列号格式定义"  SortExpression="SERIALMENO"  Visible="False" />
			                <asp:BoundField DataField="STATIONCODE" HeaderText="服务商代码"  SortExpression="STATIONCODE"  Visible="False" />
			                <asp:BoundField DataField="EMISSIONS" HeaderText="排量"  SortExpression="EMISSIONS"  Visible="False" />
			                <asp:BoundField DataField="STATIONNAME" HeaderText="服务商名称"  SortExpression="STATIONNAME"  Visible="False" />
			                <asp:BoundField DataField="OWNERSOFFICEPHONE" HeaderText="车主办公电话"  SortExpression="OWNERSOFFICEPHONE"  Visible="False" />
			                <asp:BoundField DataField="OWNERSHOMEPHONE" HeaderText="车主家庭电话"  SortExpression="OWNERSHOMEPHONE" Visible="False" />
                        </Columns>	
                        <RowStyle CssClass="row" />
                        <AlternatingRowStyle CssClass="row2" />
                        <HeaderStyle CssClass="header" />	
                        <PagerStyle CssClass="pager" />	
                    </dp:WebGridView>
                </div>
            </div>
        </div>
    </div>
    </div>
    </form>
</body>
</html>
